package cn.blue.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private String keyword;
    //当前页
    private Integer currentPage;
    //每页展示的条数
    private Integer pageSize;
    //limt开始下标
    public Integer getStart(){
        return (currentPage-1) * pageSize;
    }

}
